package com.hr.runnerbuddy;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
//import android.view.MotionEvent;
import android.view.Window;
//import android.widget.ImageView;
//import android.widget.ImageView.ScaleType;

public class Splash extends Activity {
//	protected boolean _active = false;
//	protected int _splashTime = 2000;
	private final int SPLASH_DISPLAY_LENGHT = 2000;
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.splash);
		
		new Handler().postDelayed(new Runnable(){
		         public void run() {
		                /* Create an Intent that will start the Menu-Activity. */
		                Intent mainIntent = new Intent(Splash.this,Hoofdmenu.class);
		                Splash.this.startActivity(mainIntent);
		                Splash.this.finish();
		         }
		}, SPLASH_DISPLAY_LENGHT);
		
	}
	
	public void onPause(){
		super.onPause();
	}
	
	public void onDestroy(){
		super.onDestroy();
	}

}